<div class="menu">
	<div align="right" style="font-weight:bold; font-size:12px; padding-bottom:8px; color:#10498A;">
		<?php echo $this->Access->getMyRole($this->Access->getMy('group_id')).": ".$this->Access->getMy('nombre_completo');?>
	</div>
	<div class="desplegable">
		<?php  $this->Form->new_menu($this->Access->getMy('id'),$this->Access->getMy('group_id'));?>
	</div>
</div>
<div class="comites index">
<h2><?php __('Registro de reuniones');?></h2>
<table>
		<tr>
			<td class="actions_2"><?php echo $this->Html->link(__('Crear Registro', true), array('action' => 'add', $mes, $zona )); ?></td>
		</tr>
	</table>
	<table cellpadding="0" cellspacing="0">
	<tr>
			<th><?php echo $this->Paginator->sort('tipo_comite');?></th>
			<th><?php echo $this->Paginator->sort('fecha');?></th>
			<th><?php echo $this->Paginator->sort('lugar');?></th>
			<th><?php echo $this->Paginator->sort('facilitador');?></th>			
			<!-- <th><?php echo $this->Paginator->sort('hora_inicio');?></th>
			<th><?php echo $this->Paginator->sort('hora_finalizacion');?></th>	-->
			<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
	$i = 0;
	foreach ($comites as $comite):
		$class = null;
		if ($i++ % 2 == 0) {
			$class = ' class="altrow"';
		}
	?>
	<tr<?php echo $class;?>>
		<td><?php echo $comite['Comite']['tipo_comite']; ?>&nbsp;</td>				
		<td><?php echo $comite['Comite']['fecha']; ?>&nbsp;</td>
		<td><?php echo $comite['Comite']['lugar']; ?>&nbsp;</td>
		<td><?php echo $comite['Comite']['facilitador']; ?>&nbsp;</td>
		<!-- <td><?php echo $comite['Comite']['hora_inicio']; ?>&nbsp;</td>
		<td><?php echo $comite['Comite']['hora_finalizacion']; ?>&nbsp;</td> -->		
		<td class="actions">
			<?php echo $this->Html->link(__('Ver', true), array('action' => 'view', $comite['Comite']['id'])); ?>
			<?php echo $this->Html->link(__('Editar', true), array('action' => 'edit', $comite['Comite']['id'])); ?>			
			<?php 			
			if($comite['identificador']!=0){
				echo $this->Html->link(__('Ver participantes', true), array('controller'=>'Participantescomites','action' => 'edit/', $comite['Comite']['id'])); 
			}else{
				echo $this->Html->link(__('Ver participantes', true), array('controller'=>'ParticipantesCapacitaciones','action' => 'edit/', $comite['Comite']['id']));
			}
			?>	
		</td>
	</tr>
<?php endforeach; ?>
	</table>
	<p>
	<?php
	echo $this->Paginator->counter(array(
	'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)
	));
	?>	</p>

	<div class="paging">
		<?php echo $this->Paginator->prev('<< ' . __('previous', true), array(), null, array('class'=>'disabled'));?>
	 | 	<?php echo $this->Paginator->numbers();?>
 |
		<?php echo $this->Paginator->next(__('next', true) . ' >>', array(), null, array('class' => 'disabled'));?>
	</div>
</div>